.class Lcom/waiqin365/lightapp/product/a/bq;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/product/view/e;


# instance fields
.field final synthetic a:Landroid/widget/RelativeLayout;

.field final synthetic b:Landroid/widget/LinearLayout;

.field final synthetic c:Lcom/waiqin365/lightapp/product/a/bk;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/a/bk;Landroid/widget/RelativeLayout;Landroid/widget/LinearLayout;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/bq;->c:Lcom/waiqin365/lightapp/product/a/bk;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/a/bq;->a:Landroid/widget/RelativeLayout;

    iput-object p3, p0, Lcom/waiqin365/lightapp/product/a/bq;->b:Landroid/widget/LinearLayout;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/offlinedata/s;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bq;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->e(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 12

    const-wide/16 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bq;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v1, 0x0

    move v3, v1

    move-wide v4, v6

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/bq;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-ge v3, v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/bq;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    instance-of v1, v2, Lcom/waiqin365/lightapp/product/view/CountView;

    if-eqz v1, :cond_1

    move-object v1, v2

    check-cast v1, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/view/CountView;->e()Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v8

    check-cast v2, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/product/view/CountView;->c()Ljava/lang/Double;

    move-result-object v1

    invoke-static {v1, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    mul-double/2addr v8, v10

    add-double/2addr v4, v8

    :cond_1
    add-int/lit8 v1, v3, 0x1

    move v3, v1

    goto :goto_1

    :cond_2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->e(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    goto :goto_0
.end method
